import theano
import numpy as np
import theano.tensor as T

x, y = theano.tensor.fscalars('x', 'y')
z1 = x + y
z2 = x * y

# 定义x、y为自变量， z1、z2为因变量
f = theano.function([x, y], [z1, z2])

print(f(2, 3))
